package com.gzhu.knowledgeAdmin.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import com.gzhu.knowledgeAdmin.common.valid.AddGroup;
import com.gzhu.knowledgeAdmin.common.valid.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import javax.validation.constraints.*;
/**
 * 知识表
 * 
 * @author giaogiao
 * @email giaogiao@gmail.com
 * @date 2023-04-22 23:18:59
 */
@Data
@TableName("t_zs_t")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="t_zs_t对象", description="知识表")
public class Zs implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO,value = "F_ID")
	@ApiModelProperty(value = "自增主键")
	@Null(groups = {UpdateGroup.class})
	private Integer id;

	@ApiModelProperty(value = "一级分类id")
	@TableField(value = "F_ZSFJFLID")
	private Integer zsfjflid;

	@NotBlank(groups = {AddGroup.class})
	@ApiModelProperty(value = "知识分类id")
	@TableField(value = "F_ZSFLID")
	private Integer zsflid;

	@NotBlank(groups = {AddGroup.class})
	@ApiModelProperty(value = "知识标题")
	@TableField(value = "F_ZSBT")
	private String zsbt;

	@NotBlank(groups = {AddGroup.class})
	@ApiModelProperty(value = "发布者id")
	@TableField(value = "F_FBZID")
	private Integer fbzid;

/*	@NotBlank(groups = {AddGroup.class})
	@ApiModelProperty(value = "发布者姓名")
	@TableField(value = "F_FBZ")
	private String fbz;*/

	@TableField(fill = FieldFill.INSERT,value = "F_FBSJ")
	@ApiModelProperty(value = "发布时间")
	private Date fbsj;

	@NotNull(groups = {AddGroup.class})
	@ApiModelProperty(value = "生效时间")
	@TableField(value = "F_SHENXSJ")
	private Date shenxsj;

	@NotNull(groups = {AddGroup.class})
	@ApiModelProperty(value = "失效时间")
	@TableField(value = "F_SHIXSJ")
	private Date shixsj;

	@NotBlank(groups = {AddGroup.class})
	@ApiModelProperty(value = "问题内容")
	@TableField(value = "F_WTNR")
	private String wtnr;

	@NotBlank(groups = {AddGroup.class})
	@ApiModelProperty(value = "问题同义句")
	@TableField(value = "F_WTTYJ")
	private String wttyj;

	@NotBlank(groups = {AddGroup.class})
	@ApiModelProperty(value = "回答内容")
	@TableField(value = "F_HDNR")
	private String hdnr;

	@NotBlank(groups = {AddGroup.class})
	@ApiModelProperty(value = "答案同义句")
	@TableField(value = "F_HDTYJ")
	private String hdtyj;

	@NotBlank(groups = {AddGroup.class})
	@ApiModelProperty(value = "附件地址")
	@TableField(value = "F_FJ")
	private String fj;

	@NotBlank(groups = {AddGroup.class})
	@ApiModelProperty(value = "是否生效，0-否，1-是，2-已下线,3-审核未通过")
	@TableField(value = "F_SFSHENX")
	private String sfshenx;

	@NotBlank(groups = {AddGroup.class})
	@ApiModelProperty(value = "知识所属的公司id")
	@TableField(value = "F_GSID")
	private String gsid;

}
